package com.neusoft.yuejian12.yuejian_12.base;

import retrofit2.Call;

import static com.neusoft.yuejian12.yuejian_12.constant.Constant.BASE_URL;

/**
 * Created by Administrator on 2017-10-01.
 */


public class RetrofitBaseModel {
    protected RetrofitCallBuilder retrofitCallBuilder;
    public RetrofitBaseModel(){
        retrofitCallBuilder =
                RetrofitCallBuilder.getInstance()
                        .baseUrl(BASE_URL);
    }
    public <T> void bindCallback(Call<T> call, RetrofitCallback<T> callback) {
        retrofitCallBuilder.bindCallback(call, callback);
    }
}
